#include "debug_borrowbook.h"
#include "ui_debug_borrowbook.h"
#include "bookstore.h"

using namespace bookstore;

debug_borrowBook::debug_borrowBook(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::debug_borrowBook) {
    ui->setupUi(this);
}

debug_borrowBook::~debug_borrowBook() {
    delete ui;
}

void debug_borrowBook::on_pushButton_clicked() {

    QString str1 = ui->lineEdit->text();
    int user_id = str1.toInt();
    QString str2 = ui->lineEdit_2->text();
    int book_id = str2.toInt();


    borrow(user_id, book_id);

}
